export default {
  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: "柔宇社区 - 柔性星球折叠新世界",
    htmlAttrs: {
      lang: "en",
    },
    meta: [
      { charset: "utf-8" },
      { "http-equiv": "X-UA-Compatible", content: "IE=edge,chrome=1" },
      { name: "format-detection", content: "telephone=no" },
      { hid: "renderer", name: "renderer", content: "webkit" },
      {
        hid: "viewport",
        name: "viewport",
        content:
          "width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0,user-scalable=no",
      },
      { hid: "keywords", name: "keywords", content: "柔宇社区、柔性星球" },
      {
        hid: "description",
        name: "description",
        content: "柔宇社区、柔性星球",
      },
    ],
    link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
  },
  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
   
    //富文本编辑组件css 部分
    'quill/dist/quill.snow.css',
    'quill/dist/quill.bubble.css',
    'quill/dist/quill.snow.css',
    //自定义部分
    "assets/css/basic.css",
    "element-ui/lib/theme-chalk/index.css",
    "assets/css/global.css",


  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    // 按需引入 ElementUI
    {
      src: "@/plugins/element-ui",
      ssr: true, // ssr 开启或者关闭
    },
    // 固化 vuex 状态，刷新页面不会丢失
    {
      src: "@/plugins/localStorage",
      ssr: false,
    },
    // 引入 vue-quill-editor 组件 富文本编辑
    {
      src: "@/plugins/quill",
      ssr:false
    },{
      // 引入 图片剪裁插件
      src:"@/plugins/cropper",
      ssr:false
    },{
      src:"@/plugins/vueScrollTo",
      ssr:false
    }
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  // components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
    // 扩展 styleResource 功能 
    '@nuxtjs/style-resources'
  ],

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
    babel: {
      plugins: [
        [
          "component",
          {
            libraryName: "element-ui",
            styleLibraryName: "theme-chalk",
          },
        ],
      ],
    },
    styleResources:{
      scss:["./assets/css/variable.scss","./assets/css/index.scss"]
      
      

    }

  },
};
